package com.etc.delivery.dto;

import org.springframework.stereotype.Component;

@Component
public class DriverDto {

    private Integer id;

    private String name;

    private String sex;

    private String phone;

    private String email;

    private String warehouseName;

    @Override
    public String toString() {
        return "DriverDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", warehouseName='" + warehouseName + '\'' +
                '}';
    }

    public DriverDto(Integer id, String name, String sex, String phone, String email, String warehouseName) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.email = email;
        this.warehouseName = warehouseName;
    }

    public DriverDto() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }
}
